<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html >
<head>
	<meta charset="UTF-8">
	<title></title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" media="all" />
	<style type="text/css">
		#container{
			margin-top:50px;
		}
		#walldiv{
			position:relative;
		}
		#hrefdiv{
			position:absolute;
			left:7px;
			bottom:10px;
		}
			#div{
			position:relative;
		}
		#navdiv{
			position:absolute;
			right:5px;
			bottom:10px;
		}
	</style>
</head>
<body>
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a href="#" class="brand" style="color:#fff">凯盛项目管理系统</a>
			</div>
		</div>
	</div>
	<div class="container" id="container">
		<div class="row">
			<div class="span3">
					<div class="well" style="padding:8px 0;">
					<ul class="nav nav-list">
						<li class="nav-header" style="padding-top:0px">新Apple总部项目</li>
						<li class="divider"></li>
						<li ><a href="#"><i class="icon-white icon-home"></i>最新动态</a></li>
						<li><a href="goal.html"><i class="icon-flag"></i>目标</a></li>
						<li><a href="#"><i class="icon-folder-open"></i>资料库</a></li>
						<li><a href="#"><i class="icon-file"></i>文件共享</a></li>
						<li><a href="#"><i class="icon-user"></i>联系人</a></li>
						<li class="active"><a href="#"><i class="icon-fire"></i>想法</a></li>
						<li><a href="#"><i class="icon-warning-sign"></i>Bug</a></li>
						<li><a href="#"><i class="icon-cog"></i>项目设置</a></li>
					</ul>
				</div>
			</div>
			<div class="span9" id="div">
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius:3px 3px 0 0">
					<li><a href="#" style="color:#333"><i class="icon-fire"></i>想法>${idea.title }</a></li>
				</ul>
				<div class="wall" style="border:1px solid #ccc;height:600px;border-top:none;padding:15px" id="walldiv">
					<div class="page-header" style="border-bottom:1px solid #eee;">
						<h3>${idea.title }&nbsp;&nbsp;<small>${idea.employee.username }发布于 ${idea.createtime }</small></h3>
					</div>
					${idea.content }</p>评论 
					
					<div class="line" style="border-bottom:1px solid #eee; margin-bottom:7px;"></div>
					<form action="project.jspx?m=ideaComment" method="post">
						<input type="hidden" name="id" value="${idea.id }"/>
						<textarea name="content" id="" class="span8" rows="5"></textarea>
						<button class="btn" type="submit">发布</button>
					</form>
					<c:choose>
						<c:when test="${empty page.result}">
							您还没有评论哦！
						</c:when>
						<c:otherwise>
							<c:forEach items="${page.result }" var="comment">
						<blockquote style="margin-top:10px;">
							${comment.content }
							<small>${comment.employee. username}发布于 ${comment.time }
							
							</small>
						</blockquote>
					</c:forEach>
						<div class="pagination" style="float:right;" id="navdiv">
							<ul>
										
								<li><a href="project.jspx?m=toIdea&p=1&id=${idea.id }">Prev</a></li>
								<li class="active"><a href="project.jspx?m=toIdea&p=1&id=${idea.id }">1</a></li>
								<li><a href="project.jspx?m=toIdea&p=2&id=${idea.id }">2</a></li>
								<li><a href="project.jspx?m=toIdea&p=3&id=${idea.id }">3</a></li>
								<li><a href="project.jspx?m=toIdea&p=4&id=${idea.id }">4</a></li> 
								<li><a href="project.jspx?m=toIdea&p=${page.pageNum + 1 }&id=${idea.id }">Next</a></li>
							</ul>
						</div>
						</c:otherwise>
					</c:choose>
					<div id="hrefdiv"><a href="project.jspx?m=idea">←返回想法列表</a></div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>